Skip to content

build: upgrade to Rust 1.100 and refresh benchmark policy - #348

Merged
acgetchell merged 1 commit into
mainfrom
build/rust-1.100
Nov 16, 2026
Merged

acgetchell merged 1 commit into
mainfrom
build/rust-1.100

Conversation

@acgetchell

@acgetchell acgetchell commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Problem

The workspace and measurement compiler were pinned to Rust 1.99.1. New diagnostics need fixes before Rust 1.100 can pass the repository's warnings-as-errors policy. The benchmark policy also still admitted older releases with incomplete API inventories.

Changes

  • Align both workspace crates, Clippy, contributor documentation, and active measurement plans on Rust 1.100.0. This raises the minimum supported Rust version.
  • Deny six Cargo manifest lints across the workspace, remove redundant package metadata and obsolete Clippy expectations, and adopt const-compatible swaps, parity toggles, and fused error-coefficient expressions.
  • Refresh managed tooling and Rust/Python dependency locks.
  • Require v0.5.2 or newer on both sides of new benchmark comparisons, with the complete required inventory on each side. Update consumer tests and guidance while preserving historical reports.

Validation

  • just check and just ci passed locally on macOS arm64 with Rust 1.100.0 and the updated dependencies.
  • 1,143 Rust tests and 542 Python tests passed, along with default/exact doctests, Clippy, examples, benchmark compilation, and repository checks.
  • Confirmed the three error-coefficient constants remain bit-identical and the staged source matches the validated source.

Performance

No new timing claims are made. Controlled compiler comparisons and the sample PGO experiment are tracked separately in #347, which remains open. Numerical contracts and historical benchmark evidence are preserved.

Summary by CodeRabbit

  • Documentation
    • Updated the minimum supported Rust version to 1.100.0 and refreshed benchmark guidance, including release coverage and comparison requirements.
  • Chores
    • Updated performance measurement requirements to start at v0.5.2, with complete suite coverage on both revisions.
    • Updated pinned tooling versions.
  • Bug Fixes
    • Used fused multiply-add in selected coefficient calculations; other numerical behavior remains unchanged.

- Align the MSRV, contributor tooling, and measurement compiler on Rust
  1.100.0, and refresh managed tool pins and dependency locks.
- Deny Cargo manifest lints across the workspace and adopt const-compatible
  swaps, parity toggles, and fused error-coefficient expressions while
  preserving numerical behavior.
- Require v0.5.2 or newer for new benchmark comparisons so both revisions
  provide the complete case inventory; preserve historical reports.

Refs #347
@acgetchell
acgetchell enabled auto-merge (squash) November 16, 2026 05:24
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The PR raises the Rust minimum version to 1.100.0, updates workspace lint and tool settings, and makes several Rust implementation edits. It also revises benchmark measurement policy to require complete suite coverage on both revisions and set v0.5.2 as the minimum release.

Changes: Rust toolchain and implementation

Layer / File(s) Summary
Rust baseline and workspace lint settings
AGENTS.md, CONTRIBUTING.md, Cargo.toml, README.md, benches/comparison/Cargo.toml, clippy.toml, pyproject.toml, rust-toolchain.toml
The documented and configured Rust version changes to 1.100.0. Workspace lint settings are added, the package homepage field is removed, and pinned development tool versions are updated.
Rust expression and lint updates
benches/common/exact.rs, benches/common/rational_solve.rs, src/exact.rs, src/ldlt.rs, src/lib.rs, src/lu.rs, src/matrix.rs
The code uses toggle(), array swapping, iterator traversal, and fused multiply-add in the described expressions. Several clippy::needless_range_loop expectation attributes are removed; the associated loops remain unchanged.

Benchmark comparison policy

Layer / File(s) Summary
Minimum release and measurement inventory
tooling/performance-policy.toml, tooling/measurements/*.toml, docs/BENCHMARKING.md
The minimum benchmark release changes to v0.5.2. Measurement configurations require the listed suites on both revisions and use Rust 1.100.0. The documented full plan is 2,838 measurements.
Benchmark workflow and release validation
tests/tooling/test_performance_workflow.py, tests/tooling/test_release_performance.py
Workflow tests require complete suite coverage on both revisions and test rejection of releases older than v0.5.2. Release-preparation test fixtures and expectations use updated package versions and tags.
Benchmark comparison documentation
README.md, tooling/README.md
The documentation describes the v0.5.2 minimum, two-revision suite requirements, and how older reports and optional BigRational Gaussian timings are treated.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Merge Risk: Minimal · up to fcc04

This PR raises the minimum supported Rust version to 1.100.0, refreshes pinned tools, and requires complete benchmark coverage on both revisions starting from v0.5.2. No concrete regression was found, and the reported local checks passed, so it looks safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "build: upgrade to Rust 1.100 and refresh benchmark policy" states the two main changes. The raw summary shows the Rust 1.99.1 to 1.100.0 MSRV and toolchain bump across manifests, toolchain …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "build: upgrade to Rust 1.100 and refresh benchmark policy" states the two main changes. The raw summary shows the Rust 1.99.1 to 1.100.0 MSRV and toolchain bump across manifests, toolchain pins, and docs. It also shows the benchmark policy refresh to v0.5.2 minimum releases and full-inventory comparisons. The title is specific and concise. It omits the Cargo lint changes, Clippy expectation removals, and error-coefficient FMA changes, but it does not need to cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 32de48e and fcc0448.

Files ignored due to path filters: 2

  • Cargo.lock is excluded by !**/*.lock
  • uv.lock is excluded by !**/*.lock
Files selected for processing: 22

  • AGENTS.md
  • CONTRIBUTING.md
  • Cargo.toml
  • README.md
  • benches/common/exact.rs
  • benches/common/rational_solve.rs
  • benches/comparison/Cargo.toml
  • clippy.toml
  • docs/BENCHMARKING.md
  • pyproject.toml
  • rust-toolchain.toml
  • src/exact.rs
  • src/ldlt.rs
  • src/lib.rs
  • src/lu.rs
  • src/matrix.rs
  • tests/tooling/test_performance_workflow.py
  • tests/tooling/test_release_performance.py
  • tooling/README.md
  • tooling/measurements/full.toml
  • tooling/measurements/non-exact.toml
  • tooling/performance-policy.toml
Files with no reviewable changes: 2

  • benches/common/rational_solve.rs
  • src/ldlt.rs

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.27%. Comparing base (32de48e) to head (fcc0448).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #348      +/-   ##
==========================================
- Coverage   98.34%   98.27%   -0.07%     
==========================================
  Files          16       16              
  Lines        7601     7772     +171     
==========================================
+ Hits         7475     7638     +163     
- Misses        126      134       +8     
Flag Coverage Δ
unittests 98.27% <100.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@acgetchell
acgetchell merged commit c620e66 into main Nov 16, 2026
37 of 38 checks passed
@acgetchell
acgetchell deleted the build/rust-1.100 branch November 16, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant